package com.example.demo.zabbix.request.builder.webscenario;

import com.example.demo.zabbix.request.BaseRequest;
import com.example.demo.zabbix.request.builder.request.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/httptest/update
 */
public class HttptestUpdateRequestBuilder extends UpdateRequestBuilder {
    private String httptestId;
    public HttptestUpdateRequestBuilder(String auth) {
        super("httptest.update", auth);
    }

    public HttptestUpdateRequestBuilder(Long id, String auth) {
        super("httptest.update", id, auth);
    }

    public String getHttptestId() {
        return httptestId;
    }

    public HttptestUpdateRequestBuilder setHttptestId(String httptestId) {
        this.httptestId = httptestId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("httptestid",httptestId);
        return  baseRequest;
    }
}
